package com.gigi.model;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.List;

@ApiModel("博客实体")
@Data
public class BlogDO {

    private Long id;

    @NotBlank
    private String title;

    @NotBlank
    private String contentValue;

    @NotBlank
    private String contentHtml;

    @NotNull
    private Long typeId;

    @NotEmpty
    private List<String> tagId;

    private String tagNamesStr;

    @NotBlank
    private String pic;

    @NotBlank
    private String zhaiYao;

    private String time;

    @NotNull
    private Long userId;

    private String userName;

    private String userPic;

    private String typeName;

    private List<String> tagName;

    private int likeCount;

    private int collectCount;

    private LocalDate timeDate;

}
